package ${packageName}.${entityPath};
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import java.io.Serializable;

/**
* @Desprition TODO
* @author ${author}
* @since ${(.now)?string('yyyy-MM-dd HH:mm:ss')}
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
@TableName("${tableName}")
public class ${beanName?cap_first} extends Model<${beanName?cap_first}>  {
    private static final long serialVersionUID = 1L;
<#list fileds as param>
    <#if (param.columnComment)=="">
    <#else>
    /**
    *${param.columnComment}
    */
    </#if>
    <#if param.columnKey=="PRI">
    @TableId(value = "${param.columnName}", type = IdType.AUTO)
    private ${param.dataType} ${param.javaColumnName};
    </#if>
    <#if param.columnKey!="PRI">
    @TableField(value = "${param.columnName}")
    private ${param.dataType} ${param.javaColumnName};
    </#if>

</#list>

<#list fileds as param>
    <#if param.columnKey=="PRI">
    @Override
    protected Serializable pkVal() {
        return this.${param.javaColumnName};
    }
    </#if>
</#list>
}